The requested URL * was not found on this server.

您所在的位置:网站首页 航海王 网盘 The requested URL * was not found on this server.

The requested URL * was not found on this server.

2023-07-31 02:27| 来源: 网络整理| 查看: 265

问题详情

接手别人写的代码,负责维护,新增修改需求。

项目在linux系统,点击链接跳转正常。可是我svn更新下来,在wimdows,wamp环境下配置完成。

除了首页可以进去,其他页面一点击跳转出现The requested URL * was not found on this server.;

 

 

百度好几个办法

一http://www.dear521.com/home/blog/index/id/3.html

检测你的apache开启了rewrite_module模块,

 

如果开启了Apache的rewrite_module模块:

在项目目录添加.htaccess文件。

 

如果没有开启了Apache的rewrite_module模块:

找到apache的httpd.conf文件,放开这个模块让我来

LoadModule rewrite_module modules/mod_rewrite.so

就是将前面"#"去掉,如果不存在则添加上句。

如果你的网站是根目录的话:找到

  Options FollowSymLinks

  AllowOverride None  

将上面的None改为All

如果你的站点不在根目录,设置如下:

 

Order allow,deny

Allow from all

AllowOverride All

 

二  转载自https://blog.csdn.net/zhaoyingjiao/article/details/26452345

后面才发现项目中 .htaccess这个文件不存在!!!!  

.htaccess文件设置可以看下我的文章

https://www.cnblogs.com/wen-zi/articles/8559888.html

 

 

 心中万匹草拟马奔腾。  

真的是不怕神一般的对手,就怕坑比队友。好深一个坑



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3